package com.qst.rongxiaotong.pojo;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Table;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "question",description = "在线专家问答")
@Table(name = "tb_question")
public class Question {

    private Integer id;

    private String expertName;

    private String questioner;

    @NotBlank(message = "内容不能为空")
    private String phone;

    @NotBlank(message = "农作物名称不能为空")
    private String plantName;

    @NotBlank(message = "标题不能为空")
    private String title;

    private String question;

    private String answer;

    private Integer status;
}
